#!/bin/bash

jobId=$1

if [ -z "${jobId}" ]; then
  echo "jobId is not allowed empty."
  exit 1;
fi

echo "flink stop ${jobId}"
flink stop ${jobId}
